<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<!-- 包含头部页面 -->
	<jsp:include page="/head.jsp"></jsp:include>
	
	<form action="emp_save.action" method="post">
		<table border="1" align="center" cellpadding="5" cellspacing="0">			
			<tr>
				<td>员工姓名</td>
				<td><input type="text" name="employee.empName" id="empName"></td>
			</tr>
			<tr>
				<td>员工薪水</td>
				<td><input type="text" name="employee.salary" id="salary"></td>
			</tr>
			<tr>
				<td>选则部门</td>
				<td>
					<select name="deptId">
						<option value="" selected="selected">请选择</option>
						<c:forEach items="${requestScope.listDept }" var="dept">
							<option value="${dept.id }">${dept.name }</option>
						</c:forEach>
					</select>
				</td>
			</tr>
			<tr>
	  	 		<td colspan="2">
	  	 			<input type="submit" value="添加员工">
	  	 		</td>
  	 		</tr>
		</table>
	</form>
</body>
</html>